/**
 * Created by litao on 2018/10/8.
 */
export default (http) => {
    return {
        queryByPage(data) {
            return http.json({
                url: '/api/xmgl/queryByPage',
                data
            })
        },

        delete (dat){
            return http.json({
                url: '/api/xmgl/delete'
            });
        },

        addCompany (dat){
            return http.json({
                url: '/api/xmgl/addCompany'
            });
        },
          /**
         * 特色标签
         * @param data
         */
        queryfeaturesList(data){
            return http.json({
                url: '/api/xmgl/queryfeaturesList',
                data
            })
        },
         /**
         * 周边配套
         * @param data
         */
        querysurrounding(data){
            return http.json({
                url: '/api/xmgl/querysurrounding',
                data
            })
        },
        /**
         * 保存表单
         * @param data
         */
        saveDictInfo(data){
            return http.json({
                url: '/api/xmgl/saveDictInfo',
                data
            })
        },
         /**
         * 查询详情
         * @param data
         */
        cheackDictInfo(data){
            return http.json({
                url: '/api/xmgl/cheackDictInfo',
                data
            })
        },
        // 查询省份
        queryProvinces (data){
            return http.json({
                url: '/api/xmgl/queryProvinces',
                data
            });
        },
        // 查询城市
        queryCity (data){
            return http.json({
                url: '/api/xmgl/queryCity',
                data
            });
        },
        // 查询区域
        queryArea (data){
            return http.json({
                url: '/api/xmgl/queryArea',
                data
            });
        },
    }
}
